{% extends "admin/base_site.html" %}
{% load i18n admin_tools_dashboard_tags %}

{% block extrastyle %}
{{ block.super }}
{% block dashboard_css %}{% admin_tools_render_dashboard_css %}{% endblock %}
{% endblock %}

<!-- COLTYPE/BODYCLASS -->
{% block bodyclass %}dashboard{% endblock %}
{% block content-class %}content-grid{% endblock %}

{% block breadcrumbs %}<div id="breadcrumbs">{% trans "Home" %}</div>{% endblock %}
{% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}

{% block content %}
    {% admin_tools_render_dashboard %}
    
    <script type="text/javascript" charset="utf-8">
        (function($){
            /**
             * remove all div.group's which have no items inside
             * this happens when an Group has Modules with no items only.
             */
            $("div.group").each(function() {
                if ($(this).children("div").size() == 0) {
                    $(this).remove();
                }
            });
        })(django.jQuery);
    </script>
{% endblock %}
